<?php
class MY_Controller extends CI_Controller{
    
    public function __construct() {
        parent::__construct();
           $this->load->helper('url');
        
    }
    
 
    
    final public function _render($view = 'main/index', $data=array()){
        
        
        //$data['title']='Главная';
      
        $data['menu'] = $this->menu_model->get_menu();
        
       
        
        $this->load->view('templates/header', $data);
        $this->load->view($view, $data);
        $this->load->view('templates/footer');
        
    }
    
    
    
    
    
}




?>
